import re
import subprocess

def findThisProcess(process_name):
  cmd = 'tasklist /FI "IMAGENAME eq %s" /NH' % process_name
  ps = subprocess.Popen(cmd, stdin = subprocess.PIPE,stdout = subprocess.PIPE, stderr = subprocess.PIPE, shell = False)
  output = ps.stdout.read().decode('GBK')
  ps.stdout.close()
  ps.wait()
  if re.search(process_name,output) is None:
    return False
  else:
    return True
